package Demo1;

public class Test {
    public static void main(String[] args){
        Mouse mouse = new Mouse();
        Keyboard keyboard = new Keyboard();
        Computer computer = new Computer();

        computer.powerOn();

        computer.useDevice(mouse);

        computer.powerOff();
    }
}
